<!--
 * @Author: coman
 * @LastEditors: coman
 * @Date: 2020-06-09 15:55:37
 * @motto: No pain,No gain
 * @LastEditTime: 2020-06-09 16:53:07
--> 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num1 = 1 ;
        var num2 = 2;
        var num3 = 3;
        console.log("最大值为"+ (num1>num2?num1:num2)>num3?(num1>num2?num1:num2):num3);
       
    </script>
</body>
</html>